<?php
/**
 * Created by PhpStorm.
 * User: KHACHUNG
 * Date: 4/4/14
 * Time: 9:32 AM
 */
class Hedaotao extends AppModel{
    var $name='Hedaotao';
    var $hasAndBelongsToMany=array(
        'Khoa'=>array(
            'className'=>'Khoa',
            'joinTable'=>'hedaotaos_khoas',
            'foreignKey'=>'hedaotao_id',
            'associationForeignKey'=>'khoa_id',
            'unique'=>true
        )
    );
}